﻿<Card Color="Color.Primary" Class="ml-3  mt-2"  style="width: 18rem;">
    <CardHeader>
        @orderStatement.Day.ToString("MM月dd日 dddd")
        <div class="float-right">
        <Button Size="Size.ExtraSmall" 
                IsOutline="true" 
                Color="Color.Danger"  
                OnClick="@CloseOneselfClick" >X</Button></div>
    </CardHeader>
    <CardBody>

            <Select TValue="string" 
                    Items="@Types" 
                    Value="@orderStatement.Type" 
                    OnSelectedItemChanged="@OnCascadeBindSelectClick" />
            <Select @ref="SelectName" TValue="string"
                    Value="@orderStatement.Name"
                    Items="@Items2"
                    OnSelectedItemChanged="@OnNameChanged" />
        <h5></h5>
        <h5 class="text-right" >  ￥@orderStatement.Price.ToString("0.00") × @orderStatement.Number.ToString()  </h5>
        <h5 class="text-right">
            <Button IsOutline="true" 
                    Color="Color.Primary" 
                    Size="Size.None" 
                    OnClick="@ButtonDownClick" 
                    IsDisabled="@DownIsDisable">-</Button>
            <Button IsOutline="true" 
                    Color="Color.Primary" 
                    Size="Size.None" 
                    OnClick="@ButtonUpClick" 
                    IsDisabled="@UpIsDisable">+</Button>
        </h5>


    </CardBody>
    <CardFooter >
        <div class="pull-right"> <h5>￥@orderStatement.subtotal.ToString("0.00")</h5></div>
    </CardFooter>
</Card>


